$f: 19.2;

.home {
  position: relative;
  width: 100%;
  overflow: hidden;

  .topbg {
    position: absolute;
    right: 0;
    top: 98/$f+vw;
    z-index: -1;

    img {
      width: 658/$f+vw;
      display: block;
    }
  }

  .cbg {
    position: absolute;
    left: 0;
    top: 32%;
    z-index: -1;

    img {
      width: 208/$f+vw;
      display: block;
    }
  }

  .common_button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    border: 0;
    box-shadow: none;
    height: 56/$f+vw;
    line-height: 56/$f+vw;
    padding: 0 2vw 0 76/$f+vw;
    cursor: pointer;
    position: relative;
    &:before {
      content: "";
      display: block;
      width: 56/$f+vw;
      height: 56/$f+vw;
      border-radius: 3.5vw;
      left: 0;
      top: 0;
      bottom: 0;
      transform: scale(1);
      background-color: #2A746E;
      transition: all .7s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: transform;
    }
    &:before {
      position: absolute;
      background-color: #2A746E;
      right: 0;
    }
    .dot {
      position: absolute;
      overflow: hidden;
      background-color: transparent;
      left: .28vw;
      top: 50%;
      width: 45/$f+vw;
      height: 45/$f+vw;
      transform: translateY(-50%) translateX(0) scale(1);
      box-shadow: 0 0 0 1px #F6EFE2;
      transition: all .7s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-block;
      border-radius: 100%;
      will-change: transform;
      &:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 1;
        transform: translateX(0);
        background-image: url(../images/whi.svg);
        background-size: 50% auto;
        transition: all .7s var(--expoOut);
        will-change: transform;
        background-position: center;
        background-repeat: no-repeat;
      }
    }
    .text {
      position: relative;
      color: #2A746E;
      transform: translateX(0);
      transition: all .7s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: transform;
      font-size: 20/$f+vw;
      font-style: normal;
      font-weight: 700;
      text-transform: uppercase;
    }
    &:hover{
      &:before{
        width: 100%;
        transform: scale(.9);
        transition: all .9s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .dot {
        background-color: #F6EFE2;
        transform: translateY(-50%) translateX(.5vw) scale(.2);
        transition: all .9s cubic-bezier(0.16, 1, 0.3, 1);
        &:before {
          opacity: .0001;
          transform: translateX(100%);
          transition: all .9s cubic-bezier(0.16, 1, 0.3, 1);
        }
      }
      .text {
        color: #fff;
        transform: translateX(-1vw);
        transition: all .9s cubic-bezier(0.16, 1, 0.3, 1);
      }

    }
  }

  .section1 {
    padding: 213/$f+vw 200/$f+vw 60/$f+vw 200/$f+vw;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);

    .t {
      color: #203D3B;
      font-size: 64/$f+vw;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .types {
      display: flex;
      justify-content: space-between;
      gap: 49/$f+vw;
      margin-top: 85/$f+vw;

      .item {
        width: 25%;
        position: relative;
        z-index: 50;
        .a1 {
          border-radius: 100/$f+vw;
          border: 2px solid #2A746E;
          color: #2A746E;
          font-size: 20/$f+vw;
          display: block;
          text-align: center;
          padding: 18/$f+vw 0;
          text-transform: uppercase;
          transition: all 600ms;
        }

        .pList {
          position: absolute;
          left:0;
          top: 100%;
          // width: 80%;
          z-index: 10;
          display: none;

          a {
            border-radius: 100/$f+vw;
            border: 1px solid #2A746E;
            color: #2A746E;
            font-size: 18/$f+vw;
            display: block;
            text-align: center;
            padding: 10/$f+vw 0;
            min-width: 200/$f+vw;
            transition: all 600ms;
            margin-top: 5/$f+vw;
            margin-right: 10/$f+vw;
            text-transform: uppercase;
            background: #E0ECE3;

            &:hover {
              background: #2A746E;
              color: white;
            }
          }
        }

        &:hover {
          .a1 {
            background: #2A746E;
            color: white;
          }

          .pList {
            display: flex;
          }
        }
      }
    }
  }

  .section2 {
    margin: 60/$f+vw 200/$f+vw;

    .filter {
      display: flex;
      align-items: center;
      margin-bottom: 60/$f+vw;
      position: relative;
      z-index: 10;
      .ft {
        color: #203D3B;
        font-size: 26/$f+vw;
        text-transform: capitalize;
        display: flex;
        align-items: center;

        svg {
          width: 24/$f+vw;
          display: block;
          margin: 0 30/$f+vw;
        }
      }

      .chose {
        display: flex;
        align-items: center;

        .item {
          cursor: pointer;
          position: relative;
          .i1 {
            display: flex;
            align-items: center;

            p {
              color: #203D3B;
              font-size: 26/$f+vw;
              text-transform: capitalize;
            }

            svg {
              width: 24/$f+vw;
              display: block;
              margin: 0 30/$f+vw 0 8/$f+vw ;
              transition: all 600ms;
            }
          }

          .i2 {
            position: absolute;
            left: 0;
            top: 100%;
            background-color: white;
            width: 90%;
            z-index: 10;
            box-shadow: 0 0 10/$f+vw rgba(0, 0, 0, 0.12);
            display: none;
            a {
              display: block;
              color: #000;
              font-size: 16/$f+vw;
              padding: 10/$f+vw;
              transition: all 600ms;

              &:hover {
                background: #2A746E;
                color: white;
              }
            }
          }
        }

        .on {
          .i1 {
            svg {
              transform: rotate(-180deg);
            }
          }
        }
      }
    }

    .list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 60/$f+vw 85/$f+vw;

      .item {
        width: 100%;
        transition-delay: 100ms;

        .pic {
          width: 100%;
          position: relative;

          .bg {
            border-radius: 30/$f+vw;
            background: white;
            height: 450/$f+vw;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
              max-width: 100%;
              display: block;
              object-fit: contain;
            }
          }

          .info {
            position: absolute;
            left: 0;
            top: 0;
            background: linear-gradient(180deg, #EBF6EE 0%, #BED3C3 100%);
            padding: 34/$f+vw;
            width: 100%;
            height: 100%;
            border-radius: 30/$f+vw;
            opacity: 0;
            transition: all 600ms;

            .common_button{
              margin: 145/$f+vw 0 0 0;
            }

            .p1 {
              color: #000;
              font-size: 24/$f+vw;
            }

            .tags {
              margin-top: 10/$f+vw;

              p {
                padding: 2/$f+vw 10/$f+vw;
                border-radius: 66/$f+vw;
                background: #2A746E;
                color: #FFF;
                font-size: 16/$f+vw;
                font-family: 'PINGFANG-MEDIUM';
                margin: 15/$f+vw 15/$f+vw 0 0;
                width: fit-content;
              }

              .flex {
                display: flex;
              }
            }
          }

          &:hover {
            .info {
              opacity: 1;
            }
          }
        }

        .name {
          font-size: 24/$f+vw;
          text-align: center;
          margin-top: 34/$f+vw;
        }
      }
    }

    .pager {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 84/$f+vw 0 182/$f+vw 0;

      .prev,
      .next {
        svg {
          display: block;
          width: 23/$f+vw;
        }
      }

      .nums {
        display: flex;
        margin: 0 1vw;

        a {
          color: rgba(139, 139, 139, 1);
          font-size: 20/$f+vw;
          padding: 0.1vw 0.5vw;
          margin: 0 0.2vw;
        }

        .active {
          color: #000;
          border-bottom: 2px solid #000;
          font-weight: 600;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .common_button{
      height: 60px;
      padding: 0 35px 0 79px;
      &:before{
        width: 60px;
        height: 60px;
        border-radius: 50%;
      }
      .dot{
        width: 44px;
        height: 44px;
        left: 8px;
      }
      .text{
        font-size: 16px;
      }
      &:hover{
        padding: 0 35px 0 58px;
        &:before{
          border-radius: 35px;
        }
      }
    }
    .cbg{
      img{
        width: 100px;
      }
    }
    .section1 {
      padding: 30px 5%;

      .t {
        font-size: 28px;
      }

      .types {
        flex-direction: column;
        gap: 10px;

        .item {
          width: 100%;

          .a1 {
            font-size: 16px;
            padding: 13px 0;
            border-radius: 50px;
          }
          .pList{
            display: block;
            position: static;
            margin: 10px auto;
            a{
              padding: 10px 0;
              font-size: 14px;
              margin-bottom: 10px;
              border-radius: 50px;
            }
          }
          &:hover{
            .pList{
              display: block;
            }
          }
        }
      }
    }

    .section2 {
      margin: 30px 5%;
      .filter{
        flex-wrap: wrap;
        margin-bottom: 20px;
        .ft{
          font-size: 18px;
          svg{
            width: 24px;
          }
        }
        .chose{
          flex-wrap: wrap;
          justify-content: space-between;
          .item{
            margin-top: 15px;
            width: 100%;
            .i1{
              p{
                font-size: 18px;
              }
              svg{
                width: 24px;
                margin: 0 15px 0 5px;
              }
            }
            .i2{
              a{
                font-size: 16px;
                padding: 10px;
              }
            }
          }
        }
      }
      .list {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;

        .item {
          .pic {
            .bg {
              height: auto;
              border-radius: 30px;
            }
            .info{
              padding: 20px;
              .common_button{
                margin: 10vh 0 0 0;
              }
              .p1{
                font-size: 24px;
              }
              .tags{
                margin-top: 5px;
                p{
                  font-size: 16px;
                  padding: 5px 8px;
                  margin: 10px 10px 0 0;
                }
              }
            }
          }

          .name {
            font-size: 18px;
            margin-top: 15px;
          }
        }
      }

      .pager {
        margin: 20px 0 60px 0;

        .prev,
        .next {
          svg {
            width: auto;
          }
        }

        .nums {
          margin: 0 10px;

          a {
            font-size: 16px;
            padding: 3px 5px;
            margin: 0 5px;
          }
        }
      }
    }

  }
}